﻿using BBICMS.Resources.Front;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBICMS.Model.ViewModel.Identity
{
    public class LoginVM
    {
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        [Display(ResourceType = typeof(Labels), Name = "UserName")]
        public string UserName { get; set; }

        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        [DataType(DataType.Password)]
        [Display(ResourceType = typeof(Labels), Name = "Password")]
        public string Password { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "RememberMe")]
        public bool RememberMe { get; set; }

        public string ReturnUrl { get; set; }

        //[Required]
        //[Display(Name = "电子邮件")]
        //[EmailAddress]
        //public string Email { get; set; }

        //[Required]
        //[Display(Name = "用户名")]
        //public string UserName { get; set; }

        //[Required]
        //[DataType(DataType.Password)]
        //[Display(Name = "密码")]
        //public string Password { get; set; }

        //[Display(Name = "记住我?")]
        //public bool RememberMe { get; set; }

        //public string ReturnUrl { get; set; }

        //[Required]
        //[Display(Name = "验证码")]
        //public string CaptchaText { get; set; }
    }

}
